#include <stdio.h>

double min(double x, double y);

int main(void)
{
    double a;
    double b;
    double c = 3.1;
    printf("Please enter the number of x:");
    scanf("%lf", &a);
    printf("Please enter the number of y:");
    scanf("%lf", &b);
    c = min(a, b);
    printf("min = %lf\r\n", c);
 
    return 0;
}

double min(double x, double y)
{
     printf("Please enter the number of x: %f\r\n", x);
     printf("Please enter the number of y: %f\r\n", y);
    if(x > y)
        return y;
    if(x < y)
        return x;
}